home *** CD-ROM | disk | other *** search
/ SGI Freeware 2002 November / SGI Freeware 2002 November - Disc 3.iso / dist / fw_qt3.idb / usr / freeware / Qt / .qt_wrapper.z / .qt_wrapper (.txt)
Microsoft Windows Help File Content  |  2002-04-08  |  1KB  |  36 lines

  1. # .qt_wrapper
  2. PROG=`basename $0`
  3. FW_QT=0
  4. if [ "$QTDIR" = "" ]
  5.   export QTDIR=/usr/freeware/Qt
  6.   if [ "$LD_LIBRARYN32_PATH" = "" ]
  7.   then
  8.     export LD_LIBRARYN32_PATH=$QTDIR/lib
  9.   else
  10.     export LD_LIBRARYN32_PATH=$QTDIR/lib:$LD_LIBRARYN32_PATH
  11.   if [ "$PATH" = "" ]
  12.   then
  13.     export PATH=$QTDIR/bin
  14.   else
  15.     export PATH=$QTDIR/bin:$PATH
  16.   case $QTDIR in
  17.     /usr/freeware/Qt)  FW_QT=1 ;;
  18.     *)                 FW_QT=0 ;;
  19.   esac
  20. case $PROG in
  21.   .qt_wrapper)  echo ".qt_wrapper:  utility script for fw_qt binaries"
  22.                 echo ""
  23.                 echo "  QTDIR=/usr/freeware/Qt"
  24.                 echo ""
  25.                 if [ $FW_QT -ne 1 ]
  26.                 then
  27.                   echo "WARNING:  non-default QTDIR value... [ $QTDIR ]"
  28.                   echo ""
  29.                 fi
  30.                 exit ;;
  31.   *) ;;
  32. if [ -f /usr/freeware/Qt/bin/$PROG ]
  33.   exec /usr/freeware/Qt/bin/$PROG $*
  34.   echo "WARNING:  unable to run program... [ $PROG ]"
  35.   exit
  36.